package dao;

import entities.TransactionJdo;

import java.sql.Date;
import java.util.List;

public interface TransactionDAO {
    public void addTransaction(TransactionJdo transaction);
    public void removeTransaction(TransactionJdo transaction);
    public void updateTransaction(Long transactionId, TransactionJdo transaction);
    public TransactionJdo getTransactionById(Long transactionId);
    public List<TransactionJdo> getTransactionsByCompanyId(Long companyId);
    public List<TransactionJdo> getTransactionsByGroupId(Long groupId);
    public List<TransactionJdo> getTransactionsByDateRegistered(Date dateRegistered);
    public List<TransactionJdo> getTransactionsRegisteredInPeriod(Date startDate, Date endDate);
}
